<!DOCTYPE html>
<html lang="zh">

<head>
    <title></title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <script src="https://cdn.staticfile.net/vue/2.7.8/vue.js"></script>
    <link href="../css/style.css" rel="stylesheet">
</head>

<body>
<div id="app">
    <weather></weather>
</div>
<script>
    Vue.component('weather', {
        template: '<strong>{{todayWeather}}</strong>',
        data: function () {
            return {
                todayWeather: Date.now()
            }
        }
    })
    const vm = new Vue({
        el: '#app'
    });
</script>
</body>
</html>